#include<stdio.h>
int tan(int* s,int e,int &sum)
{
	int S = 0;
	sum = 0;
	for(int i=0;i<10;i++)
	{
		if (s[i] == e || s[i] == 0)
			continue;
		if (s[i] % e == 0)
			S++;
		else
			sum += s[i];
	}
	return S;
}
int main()
{
	int A[] = { 1,2,3,4,5,6,7,8,9,0 };
	int i; int e = 3; int sum=0;
	for(i=0;i<10;i++)
	{
		printf("%d", A[i]);
	}
	printf("\ne=%d\n", e);
	int s=tan(A,e,sum);
	printf("%d %d", s, sum);
}